<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <title>會員註冊</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1, maximum-scale=1">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">

    <!-- 可选的Bootstrap主题文件（一般不用引入） -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">


    <!--[if lt IE 9]>
    <script type="text/javascript" src=/taobao_3dchat/Public/Admin/js/html5.js"></script>
    <script type="text/javascript" src="/taobao_3dchat/Public/Admin/js/respond.min.js"></script>
    <script type="text/javascript" src="/taobao_3dchat/Public/Admin/js/PIE_IE678.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet"
          href="/taobao_3dchat/Public/Admin/css/H-ui.css"/>
    <link type="text/css" rel="stylesheet"
          href="/taobao_3dchat/Public/Admin/css/H-ui.admin.css"/>
    <link type="text/css" rel="stylesheet"
          href="/taobao_3dchat/Public/Admin/font/font-awesome.min.css"/>
    <!--[if IE 7]>
    <link href="/taobao_3dchat/PublicAdmin/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css"/>
    <![endif]-->


</head>
<body>
<form data-reactroot="" method="POST" action="/taobao_3dchat/index.php/Index/getVerify" class="postreigister">
    <div class="form-group ">
        <div class="input-group"><span class="input-group-addon" id="email">電郵　　
        </span><input type="email" class="form-control" name="username" placeholder="電郵" value="" datatype="e"
                      nullmsg="郵箱不能為空"></div>
    </div>
    <div class="form-group ">
        <div class="input-group"><span class="input-group-addon" id="password">登入密碼</span>
            <input type="password" class="form-control" name="password" placeholder="最少 6 個字" value="" datatype="*6-12"
                   nullmsg="密碼不能為空">
        </div>
        <span class="help-block"></span></div>
    <div class="form-group ">
        <div class="input-group"><span class="input-group-addon" id="confirm_password">確認密碼</span>
            <input type="password" class="form-control" name="confirm_password" placeholder="" value=""
                   datatype="*6-12" recheck="password" errormsg="兩次輸入的密碼不一致" nullmsg="密碼不能為空">
        </div>
        <span class="help-block"></span>
    </div>

    <span class="help-block"></span>
    </div>
    <div class="form-group ">
        <span class="help-block"></span>
    </div>
    <div class="form-group ">
        <div class="g-recaptcha" data-sitekey="<?php echo ($siteKey); ?>"></div>
        <script type="text/javascript"
                src="https://www.google.com/recaptcha/api.js?hl=en">
        </script>
    </div>
    <div class="text-center">
        <button type="submit" class="btn btn-primary btn-block ">立即註冊</button>
    </div>
</form>
</body>
<script type="text/javascript" src="/taobao_3dchat/Public/Admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/taobao_3dchat/Public/Admin/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="/taobao_3dchat/Public/Admin/js/H-ui.js"></script>
<script type="text/javascript" src="/taobao_3dchat/Public/Admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/taobao_3dchat/Public/Admin/layer/layer.min.js"></script>

<script type="text/javascript">
    $(".postreigister").Validform();
</script>

<?php if($code == 1): ?><script type="text/javascript">
        alert("註冊成功,請到郵箱進行驗證");
        var index = window; //先得到当前iframe层的索引
        index.close(); //再执行关闭
    </script><?php endif; ?>
<?php if($code == 2): ?><script type="text/javascript">
        alert("註冊失敗,賬號已存在");
        //        var index = window; //先得到当前iframe层的索引
        //        index.close(); //再执行关闭
    </script><?php endif; ?>

</html>